package cn.cttic.link.api.domain.bo;

import cn.cttic.link.api.domain.BaseThirdInterface;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 请求历史业务对象 base_third_interface
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseThirdInterface.class, reverseConvertGenerate = false)
public class BaseThirdInterfaceBo extends BaseEntity {

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 业务ID
     */
    @NotBlank(message = "业务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessId;

    /**
     * 接口类型
     */
    @NotBlank(message = "接口类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String interfaceType;

    /**
     * 接口地址
     */
    @NotBlank(message = "接口地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accessUrl;

    /**
     * 请求类型
     */
    @NotBlank(message = "请求类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String requestType;

    /**
     * 请求参数
     */
    @NotBlank(message = "请求参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String requestParam;

    /**
     * 请求体
     */
    @NotBlank(message = "请求体不能为空", groups = { AddGroup.class, EditGroup.class })
    private String requestBody;

    /**
     * 响应参数
     */
    @NotBlank(message = "响应参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responseBody;

    /**
     * 响应数据
     */
    @NotBlank(message = "响应数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responseData;

    /**
     * 响应结果
     */
    @NotBlank(message = "响应结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private String result;


}
